import { BreezeClass } from "./BreezeClass";
import { IComponent, IRootState } from "../interface/componentType";
import { ElementClass } from "./ElementClass";

export class ComponentClass extends BreezeClass<IComponent> {
  private rootState: IRootState;
  constructor(component: IComponent) {
    super({
      view: ElementClass
    }, component);
    this.rootState = component.rootState;
  }

  getRootState() {
    return this.rootState;
  }
}